package com.xiao.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DiscussInfo {
    private Integer discussid;
    private Long messageid;
    private Long uid;
    private String speakcontent;
    private Date speaktime;
    private Long replyid;

    private User user;

    public DiscussInfo(Long messageid, Long uid, String speakcontent, Long replyid) {
        this.messageid = messageid;
        this.uid = uid;
        this.speakcontent = speakcontent;
        this.replyid = replyid;
    }

    public DiscussInfo(Long messageid, Long uid, String speakcontent) {
        this.messageid = messageid;
        this.uid = uid;
        this.speakcontent = speakcontent;
    }
}
